[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
,                        Sequence Operator

 e1 , e2                 Expression evaluation
 e1                      any expression
 e2                      any expression

    The sequence operator ',' evaluates first the left operand e1, then the
    right operand e2, and then returns the value of e2.

  -------------------------------- Example ---------------------------------

           i = j = 2 , j + 3;
           /* i == 2, since assignment has a higher priority than , */

           i = ( j = 2 , j + 3 );
           /* i == 5; what's inside the parentheses is evaluated first */

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson